//
// Created by denglibin on 2021/5/31.
//

#ifndef SDL_DEMO_RECT_SPIRIT_H
#define SDL_DEMO_RECT_SPIRIT_H

typedef struct rect_spirit{
    int x;
    int y;
    int x_speed;
    int y_speed;
    int x_direction;
    int y_direction;
    int rect_w;
    int rect_h;
}RectSpirit;

/**
 * 创建
 * @param x
 * @param y
 * @return
 */
RectSpirit * RectSpiritCreateDefault(int x, int y);
/**
 * 释放
 * @param rectSpirit
 */
void RectSpiritFree(RectSpirit* rectSpirit);

#endif //SDL_DEMO_RECT_SPIRIT_H
